package com.niit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * @Author： 曾渝晋
 * @date: 2021/6/16 1:37 上午
 * @description:
 * 启动服务，进入http://localhost:3346/hystrix
 * ribbon和eureka整合后，客户端可直接调用，不用关心ip和端口号
 * 将服务端的application.name 与 相对应的客户端负载策略绑定
 * @modified:
 * @Version: 1.0
 */
@SpringBootApplication
@EnableHystrixDashboard //开启监控
@EnableCircuitBreaker
public class ConsumerDashBoardApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerDashBoardApplication.class,args);
    }
}
